Deep Learning-Based Magnetic Resonance Imaging Features in Diagnosis of Perianal Abscess and Fistula Formation

There was an investigation of the diagnostic and prognostic effect of magnetic resonance imaging (MRI) based on multimodal feature fusion algorithm for impotence of perianal abscess. In this study, the second to fifth convolution blocks of the visual geometric group network were applied to extract the depth features in the way of transfer learning, and a multimode feature fusion algorithm was constructed. The whole network was trained by maximizing the energy proportion of the feature layers, which was compared with the fully convolutional neural network (FCN) algorithm. Then, this algorithm was adopted to the imaging diagnosis of 50 patients with anorectal diseases admitted to our hospital, and it was found that the similarity coefficient (85.37%), accuracy (80.02%), and recall rate (79.38%) of the improved deep learning algorithm were higher markedly than those of the FCN algorithm (70.18%, 67.82%, and 66.92%) (P < 0.05). As the number of convolutional layers increased, the segmentation accuracy of the convolutional neural network (CNN) algorithm was also improved. The detection rate of the observation group (84%) rose hugely compared with the control group (64%), and the difference was statistically obvious (P < 0.05). Besides, the detection accuracy of abscess location (84%), impotent tract location (80%), and internal orifice location (92%) in patients from the observation group was higher substantially than the accuracy of abscess location (60%), impotent tract location (68%), and internal orifice location (72%) from the control group (P < 0.05). In conclusion, the performance of the multimodal feature fusion algorithm was better, and the MRI image feature analysis based on this algorithm had a higher diagnostic accuracy, which had a positive effect on improving the detection rate, detection accuracy, and disease classification.


Introduction
Perianal abscess is a very common perianal disease, which is called anal pain and dirty poison in traditional Chinese medicine. e incidence rate is increasing every year, and it is more common in young men [1]. Currently, perianal abscesses are mostly thought to be caused by metastatic gland infections. Human anal glands have a flask-like shape, composed of glands and ducts, with 6-10, which are used to secrete acidic mucus to lubricate the anal canal [2,3]. Perianal abscess is caused by infection of the anal gland located between the sphincter muscles. e ways of infection include blockage of the anal glands, inability to drain the secretion of the anal glands, fluid accumulation in the glands, infection of the anal glands (between the sphincter muscles), the formation of swelling (infection source), and spread along with the conjoint longitudinal muscle to the perianal space [4]. e diagnosis of perianal abscess and anal canal stenosis is clear before surgery, and the location of the perianal opening, abscess range, anal fistula trend, and its relationship with surrounding muscle tissue are clearly defined, which is of great significance for the selection of surgical methods and the protection of anal physiological functions [5,6]. e recurrence rate of the anal canal is high, mainly because the loose canal is missed during the surgery or the occult abscess cannot be diagnosed before the surgery. e treatment of such patients is very difficult, and the key to solving this problem lies in accurate diagnosis before surgery [7].
In recent years, with the rapid development of magnetic resonance imaging (MRI) technology, nonionizing radiation MR soft tissue has high resolution and can directly image three-dimensionally. Due to the low movement of pelvic organs, high-quality images can be collected, which can accurately describe the anatomical structures of the internal and external anal sphincter, levator ani, and puborectalis muscles and can show the relationship among perianal abscess, anal fistula, and muscles around the anus [8]. People have gradually realized that the application of preoperative MRI has affected the choice of treatment methods for anal impotence, especially for the treatment of recurrent anal impotence [9]. At present, MRI has been used by scholars in developed countries as the gold standard for the assessment and classification of anal fistula. However, there are no detailed reports in domestic and foreign literature for the axial coronal sagittal plain scan and enhanced sequence in the scan, which type of internal opening of the failing tube is easy to display, and which type of internal opening of the failing tube is easy to miss the diagnosis. Preoperative MRI examination of the perianal abscess has not attracted much attention. At present, deep learning methods have surpassed traditional medical image analysis methods and made great progress in the field of anorectal MRI of patients. Lv et al. [10] developed an anorectal MR injury detection system based on deep learning. e system consists of two convolutional neural networks (CNNs): the first CNN network is used for fast image segmentation; the second CNN network is adopted to evaluate structural abnormalities of the anorectal tract.
Based on the above, the objective of this study was to explore different MRI sequence imaging based on the deep learning algorithm, detect different types of perianal abscess and anal fistula, and conduct a detailed statistical comparison with surgical results to determine the bestcombined scanning sequence. erefore, it could help surgeons make accurate surgical plans before surgery for perianal swelling and anal fistula and minimize the damage caused by surgery to patients, which played a very critical role in postoperative recovery and preservation of defecation function of patients. It was hoped that, to some extent, this research could provide a reference for the clinical diagnosis of perianal abscess as impotence disease, thereby providing some new ideas for the diagnosis of the disease.

Selection of Research
Objects. In this study, 50 patients with anorectal diseases were selected as the research objects, who were admitted to the hospital from January 20, 2018, to February 15, 2020. en, all of them were grouped randomly into the observation group and the control group. e observation group was diagnosed by MRI based on the deep learning algorithm, while the control group was diagnosed by routine MRI. Finally, the postoperative pathological results were compared and analyzed with the above results.
is study was approved by the Medical Ethics Committee of the hospital, and the patients and their family members understood the situation of this study and signed the informed consent forms.

Inclusion and Exclusion Criteria.
e criteria for inclusion were defined to include patients who were in this hospital, met the diagnostic criteria for anal fistula, and underwent surgical treatment in the anorectal department of this hospital; had the true and reliable cases; agreed to cooperate with clinical investigators. e diagnostic criteria for anal fistula are as follows according to the Standards for the Diagnosis and Treatment of Anorectal Diseases of Traditional Chinese Medicine Industry of the People's Republic of China [11].
Pus discharge: local intermittent or continuous discharge of pus and the wound does not heal for a long time. Generally speaking, the initial formation of fistula has more pus, it is accompanied by fecal smell, and the color is yellow and viscous; after a long time, the pus is scarce or sometimes absent, showing intermittent pus; if the patient is too tired, pus will increase, and serious people even have feces outflow; if the pus is reduced and then suddenly increased and accompanied by anal pain, it may be considered as an acute infection or the formation of new branches.
Pain: when the fistula is open, there is usually no pain, but only a local swelling. If the external mouth closes on its own and pus accumulates, there may be local pain or cold and heat; if the purulent water flows out after ulceration, the symptoms can be rapidly alleviated or disappeared. However, the stool flows into the pipeline and causes pain because the inner mouth is larger, especially the pain is aggravated when defecating. e pus constantly stimulates the skin around the anus and causes itching, sometimes accompanied by perianal wet sores.
According to the unified classification standard of anal fistula formulated by the National Anorectal Collaborative Group held in Hengshui, Hebei, in 1975, the anal fistula can be divided into four categories, with the deep layer of the external sphincter as the boundary [12]. (1) Low-position simple anal fistula: the internal mouth is in the anal crypt, with only one tube and passing through the deep layer of the external sphincter. (2) Low-position complex anal fistula: the internal orifice is in the anal crypt, with only one tube passing through the deep layer of the external sphincter and two or more external orifices and channels. (3) High-position simple anal fistula: the internal mouth is in the anal recess, with only one tube, running above the deep layer of the external sphincter, invading the puborectalis or levator ani muscle. (4) High-position complex anal fistula: there are one or two internal openings, two or more ducts, and branch cavities. e main duct passes through the deep layer of the external sphincter and invades the puborectalis muscle or above the levator ani muscle. e criteria for exclusion were defined to include patients who did not undergo surgical treatment in the anorectal department of this hospital; lost contact; and were unwilling to cooperate with clinical investigators. Figure 1 shows the perianal abscess and anal fistula.
e patients were revisited through telephone outpatient service to record the formation rate of anal fistula, the incidence of anal keyhole malformation, and wound healing time.

MRI Examination.
After the patient entered the imaging laboratory, the nursing staff guided him to take the lithotomy position, and the attending physician used the finger diagnosis method to evaluate the condition of the perianal lesions. Before the examination, the patient was guided to empty the rectum, take the supine position, and perform an MRI examination. e coil center was placed in the symphysis pubis center and scanning examination [13].
(1) T1WI for fat suppression in transverse axis: time to repetition (TR) was 4,000 ms, time to echo (TE) was 80 ms, layer thickness/layer spacing was 4.0/1.0 mm, the field of view (FOV) was 280 × 280 mm, the matrix was 182 × 182, and the number of scanning layers was 15 (2) Axial diffusion weighted imaging (DWI): b � 0, 800 s/mm 2  According to the actual situation of the patient, the contrast agent was injected, and the examination was carried out. e MRI reports and conclusions of all patients were reached after the unanimous opinions of two radiologists.
All cases underwent surgical treatment within 1 week after the MRI examination. e specific details of abscesses and anal fistulas (internal opening, fistula, and external opening) were recorded, which were compared with the MRI information for analysis.

Construction of Deep Learning Model Based on
Multimodal Feature Fusion 2.5.1. Deep Feature Extraction. At present, CNN is more and more widely applied in the field of medical image diagnosis and has made good progress. e mechanism of CNN is to automatically complete the feature extraction of the image through the convolutional operation of the image, which has higher semantic information and stronger robustness [14].
Since the deep learning model can achieve better results only when it is trained on labeled images, the second to fifth convolution blocks of pretrained Visual Geometry Group Network 16 (VGG16) [15] are directly adopted in this study in the way of transfer learning. e feature map of the last layer of each convolution block is extracted and processed, with H(g) and g � 1, 2, 3, 4, 5. H(g) is upsampled and H(g − 1) uses 2 * 2 convolution to perform pixel fusion on the result image, so a 5 * 5 convolution kernel is applied to correct the fused image, which can eliminate the aliasing effect used above and obtain a new feature map H(g − 1). Besides, the pyramid fusion equations are shown in the following equations: After H(2) of the last layer is obtained, it passes through the batch normalization (BN) layer, the adaptive maximum pooling layer, and the fully connected layer in turn. e BN layer can speed up the convergence speed and classification effect of the model. y (n) is set as the n-th dimension feature of H (2); the BN layer is to introduce y (n) into the parameters z (n) and ƛ (n) , and the indifference estimation was employed to output the n-th dimension feature.

Contrast Media & Molecular Imaging
Here, s − l � s l − q/ ����� � w 2 x + ϑ, q � 1/e a l�1 s l is the average value of batch size q and w 2 x � 1/e a l�1 (s l − w x ) is the variance of batch size q.
When nonlinear factors are added to the ReLU layer, the expression ability of the increased model will be weakened. e activation function of ReLU is shown as follows: e main difference between the adaptive maximum pooling layer and the standard MaxPooling is that the former will control the output-size (Out) according to the input-size (In), stride, and kernel size which are displayed in equations (5)- (7).
e fully connected layer can be regarded as the full-scale convolution of s × u, s and u are the output size of the previous layer, and finally 1,026-dimensional features extracted by CNN can be obtained as follows:

Adaptive Fusion of Multimodal Features.
Due to the different features of different modalities [16], a deep learning model of multimodal feature fusion was constructed in this research, to preserve the correlation of multimodality. e model contains a hidden layer whose number of neurons is less than the feature dimension and a sigmoid layer. e whole network is trained by maximizing the energy proportion of the feature layer. e sigmoid layer can map the feature interval after feature fusion to between (0,1), which is the prediction probability. Let the feature vector m � (c, o), and the forward propagation equations are as follows: In equations (9) and (10), z(k) � (1/1 + n − k ), t i is the deviation of the visible layer, β e is the deviation of the hidden layer, and p e is the hidden layer vector. To obtain the optimal fitting multimodal feature, the energy model is used to adjust the parameters, and the energy function is presented as follows: In equation (10), ℓ � (t i , ϑ ie , y i ), H(x, y|ℓ) represents the total energy of the module. e marginal probability distribution was defined, as follows: In the above equations, Z(ℓ) � il r − k(x,y|ℓ) and the optimization function is defined, which can be displayed as follows: Here, o is the number of samples. When function ℓ achieves the maximum value, the energy proportion of the characteristic layer is high, and the energy of the hidden layer is small. When transmitting data in the network, the direction of the data flow is also the direction of energy dissipation. After multiple iterations, the network energy shows a decaying trend, and the network tends to be ordered or the probability distribution tends to be concentrated [17]. e algorithm flow chart of this study is shown in Figure 2.

Evaluation Indicators.
Accuracy, recall, and area under curve (AUC) values were adopted to quantitatively evaluate the performance of different models. Accuracy is the proportion of correct samples predicted by the model to the total samples. e calculation equations are as follows.
Here, true positive (TP) indicates that the segmentation result and the gold standard result are both true, that is, true positive; false positive (FP) means that the segmentation result is false, and the gold standard result is true; false negative (FN) indicates that the gold standard result is true, and the standard results are all false. e AUC value is defined as the area under the receiver operating characteristic (ROC) curve enclosed by the coordinate axis. Since the ROC curve is generally above the line y � x, the value range of AUC is between 0.5 and 1. e closer the AUC is to 1.0, the higher the authenticity of the detection method.

Statistical Methods.
e data processing in this study was analyzed by SPSS19.0 version statistical software. e measurement data were expressed as mean ± standard deviation (‾x ± s), and the count data were represented by percentage (%). e t-test and χ 2 -test were adopted for detection, and the correlation between different groups was for statistical analysis. e variance test was used between the groups, and the difference was considered statistically substantial with P < 0.05.

Analysis of the Performance of MRI Images Processed by the Deep Learning Algorithm.
e images processed by the deep learning algorithm based on multimodal feature fusion (improved algorithm) in this study were compared with the MRI images processed by the pure full CNN (FCN) algorithm under different training cycles. Figure 3 shows that the similarity coefficient, accuracy, and recall rate of the improved algorithm were 85.37%, 80.02%, and 79.38%, respectively. e similarity coefficient, accuracy, and recall rate of FCN were 70.18%, 67.82%, and 66.92% in turn; the similarity coefficient, accuracy, and recall rate of the improved deep learning algorithm elevated hugely in contrast to those of the FCN algorithm, with a statistically marked difference (P < 0.05). Figure 4 revealed that the similarity coefficient, accuracy, and recall rate of the deep learning algorithm with a total number of 20 layers were 88.82%, 85.19%, and 89.66%, respectively. e similarity coefficient, accuracy, and recall rate of CNN with 6 layers were 47.62%, 49.88%, and 51.62% in sequence. It was found that, with the increase of the number of convolutional layers, the segmentation accuracy of the CNN algorithm was also continuously improved. Compared with the deep learning algorithm of 6 convolutional layers, the segmentation accuracy of the deep learning algorithm of 20 convolutional layers was significantly improved, and there was a statistical difference between the two algorithms (P < 0.05). Furthermore, the AUC area of the observation group was 0.978, and that of the control group was 1. Figure 5 shows the ROC curve of the observation group.

General Information of all the Patients.
A total of 50 patients with anal abscess and atrophy were included in this study. ere were 33 male patients and 17 female patients, ranging in age from 20 to 60 years old, with an average age of 48.19 ± 5.27 years old.
ere were 25 patients in the observation group, and 15 cases were male and 10 were female with an average age of 48.88 ± 4.56 years old; 25 patients in the control group had 18 males and 7 females, with an average age of 49.11 ± 2.82 years old. ere was no statistical difference between the two groups, and they were comparable (P > 0.05) (Figure 6). Figure 7 shows the MRI images of patients with different types of perianal abscess with impotence. Among them,   Figure 8 displays the 3 MRI images of a 48-year-old male patient. Furthermore, Figure 8(a) was a transverse axial enhanced scan of the image, showing impotence of the levator ani muscle; Figure 8(b) was the transverse axial T2WI sequence of the image, with complex anal impotence; Figure 8(c) was the ultrasound image to show that the fistula tube was <5 mm.

Comparison of the Detection Conditions of Patients from the Two Groups.
After the postoperative pathological diagnosis of the patients with perianal abscesses, the results were as follows: 4 cases of intersphincter type, 11 cases of trans-sphincter type, 7 cases of suprasphincteric type, and 3 cases of extrasphincteric type. In the observation group, there were 4 cases of intersphincter type, 10 cases of transsphincter type, 7 cases of suprasphincteric type, and 2 cases of extrasphincteric type, with a detection rate of 84%. Furthermore, 3 cases of intersphincter type, 7 cases of trans-sphincter type, 5 cases of suprasphincter type, and 1 case of extrasphincteric shape were detected in the control group, and the detection rate was 64% (Figure 9), and the detection rate of the observation group was statistically different from that of the control group (P < 0.05).

Comparison of the Detection Accuracy of Patients from the Two Groups.
In the observation group, the abscess was detected in 21 cases, fistula tract in 20 cases, and internal mouth in 23 cases; the detection accuracy was 84%, 80%, and 92%, respectively. In the control group, 15 cases of abscess, 17 cases of the fistula tract, and 18 cases of internal mouth were detected, with the detection accuracy of 60%, 68%, and 72% in turn. e detection rate of the observation group was statistically different from the rate of the control group (P < 0.05) ( Figure 10).

Discussion
Infection, sex hormones, and immune factors are the important reasons for causing anal fistula with abscess. In the past, clinical diagnosis was made by combining clinical symptoms, anal digital examination, and colonoscopy, but the number of abscesses, lesions, and fistula tube walking conditions could not be determined, so it was necessary to use imaging data for diagnosis. MRI examination has a very high discrimination rate for all soft tissues, which can accurately reflect the perianal anatomical structure. erefore, an MRI examination was carried out this time. In this   [18] also confirmed this conclusion. It was found that the MRI test method based on the deep learning algorithm of multimode feature fusion had a higher authenticity. e algorithm was applied to the imaging diagnosis of perianal abscess patients, suggesting that there were 4 cases of intersphincter type, 10 cases of trans-sphincter type, 7 cases of suprasphincteric type, and 2 cases of extrasphincteric type in the observation group, with a detection rate of 84%; 3 cases of intersphincter type, 7 cases of transsphincter type, 5 cases of suprasphincter type, and 1 case of extrasphincteric shape were detected in the control group, and the detection rate was 64%. Reginelli et al. [19] showed that, after the use of a self-made adjustable anorectal water sac, image diagnosis with axial ligation-enhanced T1WI-SPIR sequence was found to be able to provide richer details of the branch and inner opening of the malfunction canal. e observation group had 21 cases of abscess, 20 cases of fistula position, and 23 cases of internal orifice position; there were 15 cases of abscess position, 17 cases of fistula position, and 18 cases of internal orifice position in the control group. e detection accuracy of abscess location (84%), impotent tract location (80%), and internal orifice location (92%) in patients from the observation group was significantly higher than that of abscess location (60%), impotent tract location (68%), and internal orifice location (72%) of the control group (P < 0.05). e research of Panes et al. [20] found that the experimental group carried out MRI diagnosis to detect 23% of the intersphincter type, 39% of the trans-sphincter type, 22% of the supersphincter type, and 15% of the extrasphincteric type, which was not statistically markedly different from the control group. Besides, 99% of perianal abscesses, 97% of fistulas, and 100% of internal mouth were detected, which were higher than routine preoperative examinations. erefore, MRI had a high application value in improving the detection rate of anal fistulas and abscesses.

Conclusion
To explore the characteristic diagnosis and prognostic effects of perianal abscess, the deep learning algorithm based on multimodal feature fusion was applied to analyze and process the MRI images of patients with perianal abscesses. e results revealed that deep learning-based MRI image feature analysis of perianal abscess and fistula had high diagnostic accuracy and played a positive role in improving the detection rate of diseases, accuracy of disease classification, etc., which could be applied and promoted in clinical practice. However, there are still some shortcomings in this study. In this study, there are fewer groups in the experiment process. erefore, the experimental results are subjective to a certain extent. ere is also a small selection of research samples, and the test results are not suitable for large-scale use. e scope of research will be further expanded in future work.

Data Availability
e data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest
e authors declare no conflicts of interest.